<?php
class ecTextareaInput extends ecFormElement
{
	public function getHtml()
	{
		$cols = ($this->width) ? ('cols="'.$this->width.'"') : '';
		$rows = ($this->height) ? ('rows="'.$this->height.'"') : '';
		return '<label for="'.$this->id.'">'.$this->label.'</label> : <br /><textarea name="'.$this->name.'" id="'.$this->id.'" '.$cols.' '.$rows.'>'.$this->value.'</textarea>';
	}
}
